<div class="navbar">
  <div class="navbar-inner">
    <ul class="nav pull-right">
      <li>
        <a role="button">
          <?php if (@is_file('.' . $admin['avatar'])) { ?>
            <img style="width: 24px;height:24px;border-radius:2px" src="<?php echo $admin['avatar']; ?>">
          <?php } else { ?>
            <i class="icon-user"></i>
          <?php } ?>

          <?php echo $admin['username']; ?>
        </a>
      </li>
      <li>
        <a href="index.php?action=logout" onclick="return confirm('是否确认退出当前账号？');" class="hidden-phone visible-tablet visible-desktop" role="button">Logout</a>
      </li>
    </ul>
    <a class="brand" href="index.php"><span class="second">Admin</span></a>
  </div>
</div>